home *** CD-ROM | disk | FTP | other *** search
- Path: castle.nando.net!news
- From: xyzzy@nando.net (Andy Philpotts)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Fixture List Algorithms?!
- Date: 14 Mar 1996 01:33:52 GMT
- Organization: Nando.net Public Access
- Message-ID: <686.6646T1224T2589@nando.net>
- References: <Do7JKq.Dot@cf.ac.uk>
- NNTP-Posting-Host: grail2813.nando.net
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
-
- M Wood said:
- >I am considering writer (yet another...) football management simulation, one
- >of the stumbling blocks being how to generate the set of fixtures. There must
- >be a blindingly obvious solution to this?
-
- Interesting problem, and may only be trivial for certain numbers of teams.
- A brute force method (consider ALL the possibilities) would probably be OK for
- small numbers of teams). Just set up a matrix for the games then fill in the
- blanks, start with random assignment then backup each time you get a
- contradiction. I am sure there are algorithmic approaches for certain numbers
- of teams (powers of 2?), but I have no proof of this.
-
- --
- Andy Philpotts (xyzzy@nando.net)
-
-